package com.tust.app.service;

import com.tust.app.domain.Topic;

import java.util.List;
public interface TopicService {

    List<Topic> topicsList();

    int deleteByPrimaryKey(Integer id);

    int insert(Topic record);

    int insertOrUpdate(Topic record);

    int insertOrUpdateSelective(Topic record);

    int insertSelective(Topic record);

    Topic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Topic record);

    int updateByPrimaryKey(Topic record);

    int updateBatch(List<Topic> list);

    int updateBatchSelective(List<Topic> list);

    int batchInsert(List<Topic> list);

    List<Topic> selectByTitle(String title);

    List<Topic> selectByUserName(String username);
}
